//
//  THImageEditViewController.h
//  THImageEditDemo
//
//  Created by 希达 on 2018/3/27.
//  Copyright © 2018年 Tan.huang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "THImageTool.h"
#import <GPUImage/GPUImage.h>
#import "UIView+Layout.h"

@interface THImageEditViewController : UIViewController

- (id)initWithImage:(UIImage*)image;

@property (copy, nonatomic) NSString *titleName;

@property (strong, nonatomic) UIImageView *imageView;
/// 图片容器
@property (strong, nonatomic) UIScrollView *scrollView;
/// 工具栏容器
@property (strong, nonatomic) UIView *bgView;
/// 缩放比例
@property (assign, nonatomic) CGFloat  ratio;
/// 滤镜模型数组
@property (strong, nonatomic) NSMutableArray *filterArray;
@property (strong, nonatomic) GPUImagePicture *picture;

@property (copy, nonatomic) void(^th_imageEditViewControllerDoneClickBlock)(UIImage *);

/// 刷新工具栏
- (void)refreshTool;
/// 刷新图片
- (void)resetImageViewFrame;

@end
